Just as optional parameter, strictly following the bug summary, should be enough.
I sometimes open many tabs, forget who I emailed and have to check my email,
but unless someone thinks this common I don't think it's worth changing
the actual text of the confirmation adding more clutter.
Bug: 44668
Change-Id: Icf0ac18150847424728121e614849f87bee2e0e7
if ( $result === true || ( $result instanceof Status && $result->isGood() ) ) {
$out->setPageTitle( $this->msg( 'emailsent' ) );
- $out->addWikiMsg( 'emailsenttext' );
+ $out->addWikiMsg( 'emailsenttext', $this->mTarget );
$out->returnToMain( false, $this->mTargetObj->getUserPage() );
}
}
* $1 - target username
* $2 - email subject',
'emailsent' => 'Title of [[Special:EmailUser]] when it says you it sent an email',
-'emailsenttext' => 'When you send an e-mail, [[Special:EmailUser]] says you this (Your email has been sent).',
+'emailsenttext' => "Confirmation page: when you send an e-mail, [[Special:EmailUser]] says you this (Your email has been sent).
+The recipient's username is available as parameter $1 for local customisations.",
'emailuserfooter' => 'This message is appended to every email sent through the "Email user" function. Parameters:
* $1 - username of the sender
* $2 - username of the recipient',